package com.example.demo.service;

import com.example.demo.mapper.UserMapper;
import com.example.demo.model.UserInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {
    @Resource
    private UserMapper userMapper;

    public int add(UserInfo userInfo) {
//        try {
//            Thread.sleep(3 * 1000);
//        } catch (InterruptedException exception) {
//            exception.printStackTrace();
//        }
        return userMapper.add(userInfo);
    }
}
